package com.power.mock.simple;

import com.google.inject.Singleton;
import com.power.mock.User;
import com.power.mock.dto.UserQueryDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
 * @author wangjianxin01
 */
@Singleton
public class UserDAO {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    public void saveUser(User user) {
        logger.info("in method UserDAO.saveUser(User user), user = {}", user);
        throw new RuntimeException();
    }

    public User getUser(String name) {
        logger.info("in method UserDAO.getUser(String name), name = {}", name);
        throw new RuntimeException();
    }

    public List<User> listUser(UserQueryDTO userQueryDTO) {
        logger.info("in method UerDAO.listUser(UserQueryDTO userQueryDTO), userQueryDTO = {}", userQueryDTO);
        throw new RuntimeException();
    }
}
